﻿@model ElectrosLtd.Models.CommentsModel

@{
    ViewBag.Title = "PostComment";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Post Comment about this product? </h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        
        <h3>Your Comment: </h3>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <p>
            <input type="submit" value="Place Comment" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to Order Details", "OrderDetails")
</div>
